<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

use Tymon\JWTAuth\Contracts\JWTSubject;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;


class HeadStore extends Authenticatable implements JWTSubject
{
    use Notifiable;
    //
    protected $table = 'head_stores';

    protected $fillable = [
        'name', 'address', 'account', 'password', 'description'
    ];

    public function bistros() {
        return $this->hasMany('\App\Model\Bistro');
    }

    /**
     * Get the identifier that will be stored in the subject claim of the JWT.
     *
     * @return mixed
     */
    public function getJWTIdentifier()
    {
        // TODO: Implement getJWTIdentifier() method.
        return $this->getKey();
    }

    /**
     * Return a key value array, containing any custom claims to be added to the JWT.
     *
     * @return array
     */
    public function getJWTCustomClaims()
    {
        // TODO: Implement getJWTCustomClaims() method.
        return [];
    }
}
